package com.rest.response;

import java.util.List;

/**
 * Created by Administrator on 2020/2/11.
 */

public class ChatResponse extends BaseResponse {

    //发送信息类型 0 文本 1 图片 2 语音 6 处方 7 检查检验
    public static final int TEXT = 0;
    public static final int IMAGE = 1;
    public static final int AUDIO = 2;
    public static final int PRESCRIPTION = 6;
    public static final int CHECKOUT = 7;
    //发送方 0 患者  1 医生
    public static final int DOCTOR = 1;
    public static final int PATIENT = 0;
    //发送状态 0 发送成功 1 发送中 2 发送失败
    public static final int SNEDSUCCESS = 0;
    public static final int SNEDING = 1;
    public static final int SNEDFAIL = 2;

    public ChatWrapper data;

    public class ChatWrapper {
        public int pages;
        public int current;
        public List<Message> records;
    }

    public class Message {
        public int fromType;
        public String messageId;
        public String content;
        public String sendTime;
        public int messageType;//消息类型 0:text、1:image、2:voice、3:vedio、4:music、5:news 、6：处方
        public String src;
        public Prescription2Response.PrescriptionWrapper prescription;
        public CheckListData checkList;
        public int flag = 0;//  0 发送成功 1 发送中 2 发送失败
        public int time;
        public boolean isSpeaking;
    }
}
